package io.datastream;

import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class DoubleReader {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {
		DataInputStream din = null;
		try {
			FileInputStream fin = new FileInputStream(args[0]);
			din = new DataInputStream(fin);
			while (true) {
				double theNumber = din.readDouble();
				System.out.println(theNumber);
			}
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} finally {
			din.close();
			
		}
	}

}
